//获取当前位置

function loadData(callback){
  var apiURL = "http://cache.video.iqiyi.com/jp/avlist/202861101/1/";
   wx.request({
       url:apiURL,
       success:function(res){
          callback(res.data);
       },
       fail:function(res){
        console.log(res);
       }
   });
}

function loadGoogleData(callback){
    var url = "http://ajax.googleapis.com/ajax/services/feed/load?q=http://www.bilibili.tv/rss-13.xml&v=1.0";
    wx.request({
        url:url,
        success:function(data){
            callback(data);
        }
    });
}

module.exports = {
    loadData : loadGoogleData
}